<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>淘宝轮播图</title>
    <link rel="stylesheet" href="./iconfont/iconfont.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        li {
            list-style: none;
        }

        /* 图 */
        .banner {
            position: relative;
            margin: 100px auto;
            width: 564px;
            height: 315px;
            background-color: pink;
            overflow: hidden;
            border-radius: 12px;

        }

        ul {
            display: flex;
        }

        img {
            width: 564px;
            height: 315px;
            vertical-align: middle;

        }
        .banner:hover .prev,
        .banner:hover .next{
            display: block;
        }

        /* 箭头 */
        .banner .prev,
        .banner .next{
            /* 隐藏 */
            display: none;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 30px;
            background-color:rgba(0, 0, 0, 0.3);
            text-decoration: none;
            color: white;
            line-height: 30px; 
        }
        .banner .prev{
            left: 0;
            border-radius: 0 15px 15px 0;
        }
        .banner .next{
            text-align: center;
            right: 0;
            border-radius: 15px 0 0 15px;
        }
        /* 圆点 */
        .banner ol{
            display: flex;
            border-radius: 10px ;
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            height: 13px;
            background-color: rgba(255, 255, 255, 0.3);
        }
        .banner ol li{
            width: 8px;
            height: 8px;
            background-color: #fff;
            border-radius: 10px;
            margin:3px;
            cursor: pointer;
        }
        .banner ol .red{
            background-color: red;
        }
    </style>

</head>

<body>
    <div class="banner">
        <!-- 图 -->
        <ul>
            <li><a href="#"><img src="./imges/banner1.jpg" alt=""></a></li>
            <li><a href="#"><img src="./imges/banner2.jpg" alt=""></a></li>
            <li><a href="#"><img src="./imges/banner3.jpg" alt=""></a></li>
        </ul>
        <!-- 箭头 -->
        <!-- 上一张  prva-->

        <a href="#" class="prev"><i class="iconfont icon-fanhui"></i></a>

        <!-- 下一张 next -->
        <a href="#" class="next"><i class="iconfont icon-jinru"></i></a>
        <!-- 圆点 -->
         <ol>
            <li></li>
            <li class="red"></li>
            <li></li>
         </ol>
    </div>
</body>

</html>